<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/reset.css">
    <style>
        .page {
            width: 1200px;
            height: 100px;
            background-color: #ddd;
            margin:auto;

            text-align: center;
            font-size: 0;
        }

        .page li {
            display: inline-block;
            width: 50px;
            height: 50px;
            border: 1px solid #000;
            line-height: 50px;
            /* text-align: center; */
            font-size: 20px;
            margin: 0 10px;
        }




        .box {
            width: 300px;
            height: 60px;
            /* 让盒子自己居中，跟图片没有关系 */
            margin: auto;
            background-color: #f00;


            text-align: center;
            line-height: 60px;

            font-size: 0;
        }
        .box img {
            vertical-align: middle;
        }
    </style>
</head>
<body>

    <!-- 分页 -->

    <ul class="page">
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
    </ul>


    <!-- 图片未知宽高的居中 -->
    <div class="box">
        <img src="../../../day06/课堂代码/images/index-(3)_02_07.jpg" alt="">
    </div>
    
</body>
</html>